<?php
/**
 * Created by PhpStorm.
 * User: Yangxufeng
 * Date: 2018/8/30
 * Time: 13:40
 */

namespace app\index\validate;

class OrderValidate extends BaseValidate
{
    protected $rule = [
        'order_no' => 'require|max:20',
        'user_id' => 'isPositiveInt',
        'total_price' => 'require|float',
        'real_price' => 'require|float',
        'snap_img' => 'require',
        'snap_name' => 'require|max:80',
        'total_count' => 'isPositiveInt',
        'status' => 'isPositiveInt',
        'snap_items' => 'require',
        'snap_address' => 'require',
        'prepay_id' => 'require',
        'primary_key' => 'isPositiveInt'
    ];
}